<?php
$this->pageTitle = Yii::app()->name . ' - Đăng ký tài khoản';
$this->breadcrumbs = array(
    'Đăng ký',
);
?>

<h1>Đăng ký tài khoản</h1>

<div class="form">
    <?php $form = $this->beginWidget('CActiveForm', array(
        'id' => 'register-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    )); ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'ten_tai_khoan'); ?>
        <?php echo $form->textField($model, 'ten_tai_khoan'); ?>
        <?php echo $form->error($model, 'ten_tai_khoan'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'mat_khau'); ?>
        <?php echo $form->passwordField($model, 'mat_khau'); ?>
        <?php echo $form->error($model, 'mat_khau'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'email'); ?>
        <?php echo $form->textField($model, 'email'); ?>
        <?php echo $form->error($model, 'email'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'ho_va_ten'); ?>
        <?php echo $form->textField($model, 'ho_va_ten'); ?>
        <?php echo $form->error($model, 'ho_va_ten'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'so_dien_thoai'); ?>
        <?php echo $form->textField($model, 'so_dien_thoai'); ?>
        <?php echo $form->error($model, 'so_dien_thoai'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'dia_chi'); ?>
        <?php echo $form->textArea($model, 'dia_chi'); ?>
        <?php echo $form->error($model, 'dia_chi'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton('Đăng ký'); ?>
    </div>

    <?php $this->endWidget(); ?>
</div><!-- form -->
